package com.edu.entiy;
/**
 * 
 * @author wms
 *用户实体类
 */
public class User {
	private int id;//用户id
	private String userName;//用户名(登陆用)
	private String nickname;//用户昵称
	private String password;//用户密码
	private String email;//邮箱
	private String phone;//用户手机号
	private int times;//借阅量
	private int status;//用户身份 1为普通用户 2为管理员
	private int lendDayNum;//可借阅天数
	private int lendMaxNum;//最大可借阅数量
	public User() {
		super();
	}
	public User(int id, String userName, String nickname, String password, String email, String phone, int times,
			int status, int lendDayNum, int lendMaxNum) {
		super();
		this.id = id;
		this.userName = userName;
		this.nickname = nickname;
		this.password = password;
		this.email = email;
		this.phone = phone;
		this.times = times;
		this.status = status;
		this.lendDayNum = lendDayNum;
		this.lendMaxNum = lendMaxNum;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public int getTimes() {
		return times;
	}
	public void setTimes(int times) {
		this.times = times;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public int getLendDayNum() {
		return lendDayNum;
	}
	public void setLendDayNum(int lendDayNum) {
		this.lendDayNum = lendDayNum;
	}
	public int getLendMaxNum() {
		return lendMaxNum;
	}
	public void setLendMaxNum(int lendMaxNum) {
		this.lendMaxNum = lendMaxNum;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", userName=" + userName + ", nickname=" + nickname + ", password=" + password
				+ ", email=" + email + ", phone=" + phone + ", times=" + times + ", status=" + status + ", lendDayNum="
				+ lendDayNum + ", lendMaxNum=" + lendMaxNum + "]";
	}
	
}
